package jp.co.sn.mml.pojo.tsukesbkr;


public class TsukesbkrId implements java.io.Serializable { 

	//採番区分
	private String sbKbn;
	//受付日
	private Long skYmd;

	/** default constructor */
	public TsukesbkrId(){

	}

	/** full constructor */
	public TsukesbkrId(String sbKbn,Long skYmd){
		this.sbKbn = sbKbn;
		this.skYmd = skYmd;
	}

	//Property accessors
	public String getSbKbn(){
		return this.sbKbn;
	}

	public void setSbKbn(String sbKbn){
		this.sbKbn=sbKbn;
	}

	public Long getSkYmd(){
		return this.skYmd;
	}

	public void setSkYmd(Long skYmd){
		this.skYmd=skYmd;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TsukesbkrId))
			return false;

		TsukesbkrId castOther = (TsukesbkrId) other;

		return ((this.getSbKbn() ==  castOther.getSbKbn())
				||(this.getSbKbn()!=null && castOther.getSbKbn() !=null 
					&& castOther.getSbKbn() !=null 
					&& this.getSbKbn().equals(castOther.getSbKbn())))
			&& ((this.getSkYmd() ==  castOther.getSkYmd())
				||(this.getSkYmd()!=null && castOther.getSkYmd() !=null 
					&& castOther.getSkYmd() !=null 
					&& this.getSkYmd().equals(castOther.getSkYmd())))
;	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getSbKbn() == null ? 0 : this.getSbKbn().hashCode());
		result = 37 * result
				+ (getSkYmd() == null ? 0 : this.getSkYmd().hashCode());
		return result;
	}

}